﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HidesaburoDotNET.Core.Detecctors
{
    public class TsuisoDetector : YakuDetector
    {
        public override Yaku CheckYaku(AgariTehai agariTehai)
        {

            foreach (Hai h in agariTehai.Hai)
            {
                if (h.Type != HaiType.Jihai)
                {
                    return new Yaku();
                }
                
            }
            return new Yaku(13, "ツーイ－ソー");

        }
    }
}
